// 封装所有与组织架构相关的接口
import instance from '@/utils/request'

// 查询企业的部门列表
export function getDeptApi () {
  return instance({
    url: '/company/department'
  })
}

//根据ID删除部门
export function delDeptApi(id) {
  return instance({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}